from django.views.generic.list import ListView
from portal.models import Portal
from django.views.generic.edit import CreateView, UpdateView
from django.contrib.auth.models import User

class PortalsListView(ListView):
    model = Portal
    template_name = "portal_list.html"

class CreatePortalView(CreateView):
    model = Portal
#    template_name = "portal_form.html"

    def get_success_url(self):
        return "/portal/%d/created/" % self.object.pk

class UpdatePortalView(UpdateView):
    model = Portal
